package com.fanhang.samples.io.in;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.StringBufferInputStream;

public class InputStreamTest {

	public static void main(String[] args) throws Exception {
		try (InputStream is = new FileInputStream("a.txt")) {
			int tmp;
			while ((tmp = is.read()) != -1) {
				System.out.println(tmp);
			}
			
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		
		
	}
	
}
